< previous page page_654 next page >

Page 654
Chapter Objectives
Learn to utilize drag and drop
Learn how to change the drag icon
Learn to drag and drop between different controls
Learn to utilize a control array
Learn to use the ImageList control
Sample Project File: \Chapter32\DragDrop.vbp
Drag and Drop Defined
Drag and drop is becoming very popular in Windows applications today. Visual Basic includes features that allow you to add this functionality to your application relatively easily. Drag and drop can be an automatic operation, or you can manually code it to happen. This means you can let Visual Basic do some of the work, or you can manually control the entire process.
Dragging is the action of clicking and holding down the mouse button over a control and then moving that control to a new location. Dropping occurs when the mouse button is released and the control or data is moved to a new location.
A Sample Application
If you load the sample project for this chapter and run the last example by clicking the Final Example command button, youll see the form shown in Figure 32.1.
Examples Filename: Drag5.frm
8160-0654a.gif
Figure 32.1
The final example of drag and drop.

 
< previous page page_654 next page >

If you like this book, buy it!